import { createRouter, createWebHistory } from 'vue-router'
import PersonalInfo from "@/views/PersonalInfo.vue";
import FlightList from "@/views/FlightList.vue";
import BookingView from "@/views/BookingView.vue";
import LoginView from "../views/LoginView.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "Loginview",
      component: LoginView,
    },
    {
      path: "/booking",
      name: "Bookingview",
      component: BookingView,
    },
    {
      path: "/flightlist",
      name: "Flightlist",
      component: FlightList,
    },
    {
      path: "/personalinfo",
      name: "Personalinfo",
      component: PersonalInfo,
    },
  ],
})

export default router
